<template>
	<view class="content">
		<view style="margin-top: 20rpx;margin-left:20rpx;">
			<u-image class="touxiang" width="200rpx" height="200rpx" :src="src" shape="circle"></u-image>
			<b class="username">{{username}}</b>
		</view>
		<u-cell-group>
			<u-cell-item icon="phone" title="联系电话" :arrow="false">{{phone}}</u-cell-item>
			<u-cell-item icon="account" title="所在部门" :arrow="false">{{deptName}}</u-cell-item>
		</u-cell-group>
		<u-tabbar :list="tabbar" :mid-button="true"></u-tabbar>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title: '我的',
				tabbar: '',
				username: this.$store.state.userInfo.username,
				phone: this.$store.state.userInfo.phone,
				deptName: this.$store.state.userInfo.deptName,
				src: "https://www.xyjscq.com:8080/jeecg-boot/sys/common/static/"+ this.$store.state.userInfo.avatar
			}
		},
		onLoad() {
			this.tabbar = this.$store.state.tabbar
		}
	}
</script>

<style>
	.content{
			display: flex;
			flex-direction: column;
			justify-content: center;
	}
	.touxiang {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
		margin-bottom: 30rpx;
	}
	.username {
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;
		text-align: center;
	}
</style>
